//
// Created by kqzhang on 2022/3/17.
//

#ifndef HUAWEI_C___FILE_H
#define HUAWEI_C___FILE_H
#include "header.h"
#include "Individual.h"

class File{
public:
    File() = default;
    explicit File(string value);
    void setRoot(string &value);
    string getRoot();

    int getQosConstraint();
//    vector<string> getSiteId();
//    vector<string> getUserId();
//    vector<vector<int>> getQos();
//    vector<int> getSiteBandWidth();
//    vector<vector<int>> getDemand();
    void getSiteId(vector<string> & siteId);
    void getUserId(vector<string> &userId);
    void getQos(vector<vector<int>> &qos);
    void getSiteBandWidth(vector<int> &servers_BandWidth, vector<string> &site);
    void getDemand(vector<vector<int>> &demand, vector<string> &user);

private:
    string root;
    static void getDataFromFile(string path, vector<vector<string>> &spiltValue);
};

#endif //HUAWEI_C___FILE_H
